Uncaught DOMException: Failed to execute getImageData on CanvasRenderingContext2D: The canvas has been tainted by cross-origin data.

101

Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data. -

// Add below code just after creating the image object
img.crossOrigin = "Anonymous";

Comments

Submit
0 Comments